import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询景区列表
export function listScenic(params) {
  return request({
    url: '/console/scenic/area/listScenic',
    method: 'get',
    params: params
  })
}

//新增景区
export function addScenic(data) {
  return request({
    url: '/console/scenic/area/addScenic',
    method: 'post',
    data: data
  })
}
//不分页查询景区列表
export function getAllRegList(params) {
  return request({
    url: '/console/scenic/area/listScenic',
    method: 'get',
    params: params
  })
}

//修改景区
export function editScenic(data) {
  return request({
    url: '/console/scenic/area/updateScenic',
    method: 'post',
    data: data
  })
}

//查询景区详情
export function getScenic(params){
  return request({
    url: '/console/scenic/area/getScenicById',
    method: 'get',
    params: params
  })
}

//删除景区
export function deleteScenic(data) {
  return request({
    url: '/console/scenic/area/deleteScenic',
    method: 'post',
    data: data
  })
}


//生成二维码
export function getQRCode(params){
  return request({
    url: '/console/scenic/area/getQRCode',
    method: 'get',
    params: params
  })
}